home *** CD-ROM | disk | FTP | other *** search
/ PC for Alla 2005 May / PC för Alla 0505.iso / fullversioner / realsoft3d / data1.cab / Scripting / scripts / js / real / code / r3postef.js < prev    next >
Encoding:
JavaScript  |  2005-04-04  |  3.0 KB  |  94 lines

  1.  
  2. // JavaScript wrapper for r3postef.h
  3. // Auto generated file, do not modify by hand
  4. // Copyright ⌐ 2004, Realsoft Graphics Oy
  5.  
  6. var R3_POSTEFFECTMODEL_H = 1;
  7. include("real/code/r3ttag.js")
  8.  
  9.  
  10. var R3CLID_POSTEFFECTMODEL = 1211;
  11.  
  12.  
  13.  
  14.  
  15. // Description: Object describes its structure to the rendering engine. This base class does this in
  16. //      2 phases by sending R3PEFMM_RENDERBEGIN and R3PEFMM_RENDEREND methods to itself, see the methods below.
  17. // p3: Object, rendering engine    
  18.  
  19. R3PEFMM_RENDER = 1211000;
  20.  
  21. function mR3PEFMM_RENDER(p3) {
  22.   DoA(this.r3obj, 1211000, p3, R3TID_OBJECT, 0);
  23. }
  24.  
  25. // Description: 1st phase of rendering description. A sub class should make the following actions: -
  26. //      Define the clid of the object which will be created by the rendering engine to
  27. //      render this effect. The clid is defined by the parameter p2. If it is not
  28. //      0, then a sub class has already set it and the value must be inherited
  29. //      further as is. - Add the own attributes in the tag list given in 'p3'.
  30. //      - Inherit the method to its super class with the abovementioned parameter changes When this
  31. //      base class receives the RENDERBEGIN method, it sends R3FRM_BEGINLIBOBJECT to the rendering engine.
  32. // p1: Object, rendering engine
  33.  
  34. R3PEFMM_RENDERBEGIN = 1211001;
  35.  
  36. function mR3PEFMM_RENDERBEGIN(p1) {
  37.   DoA2(this.r3obj, 1211001, p1, R3TID_OBJECT, 0, 0, R3TID_INTEGER, 0);
  38. }
  39.  
  40. // Description: 2nd phase of rendering description. Sub classes usually simply inherit this to the super
  41. //      class. This base class sends R3FRM_ENDLIBOBJECT to the rendering engine when it receives this method.
  42. //      This finishes the rendering actions.
  43. // p3: Object, rendering engine    
  44.  
  45. R3PEFMM_RENDEREND = 1211002;
  46.  
  47. function mR3PEFMM_RENDEREND(p3) {
  48.   DoA(this.r3obj, 1211002, p3, R3TID_OBJECT, 0);
  49. }
  50.  
  51. // Description: enumerate all (static and dynamic) channel requirements R3DoA3(cbobj, cbmth, channelname, typeid (0 if unknown),
  52. //      context);
  53. // p1: Object, callback object
  54. // p2: Integer, callback method
  55. // p3: Object, callback context    
  56.  
  57. R3PEFMM_ENUMCHANNELS = 1211003;
  58.  
  59. function mR3PEFMM_ENUMCHANNELS(p1, p2, p3) {
  60.   DoA3(this.r3obj, 1211003, p1, R3TID_OBJECT, 0, p2, R3TID_INTEGER, 0, p3, R3TID_OBJECT, 0);
  61. }
  62.  
  63.  
  64.  
  65.  
  66. R3PEFMA_RenderBaseClass = 1211501;
  67. function SetR3PEFMA_RenderBaseClass(value) {
  68.   R3Set(this.r3obj, R3PEFMA_RenderBaseClass, value, R3TID_INTEGER, 0); 
  69. }
  70.  
  71. function GetR3PEFMA_RenderBaseClass() {
  72.   return R3Get(this.r3obj, R3PEFMA_RenderBaseClass, R3TID_INTEGER, 0); 
  73. }
  74.  
  75.  
  76.  
  77. function r3Posteffectmodel () { 
  78.    this.base = r3God;
  79.    if(arguments.length) {
  80.       this.base(R3CLID_POSTEFFECTMODEL, arguments);
  81.    }
  82.    // Methods
  83.    this.RENDER=mR3PEFMM_RENDER;
  84.    this.RENDERBEGIN=mR3PEFMM_RENDERBEGIN;
  85.    this.RENDEREND=mR3PEFMM_RENDEREND;
  86.    this.ENUMCHANNELS=mR3PEFMM_ENUMCHANNELS;
  87.  
  88.    // Attributes
  89.    this.GetRenderBaseClass=GetR3PEFMA_RenderBaseClass;
  90.    this.SetRenderBaseClass=SetR3PEFMA_RenderBaseClass;
  91. }
  92.  
  93. r3Posteffectmodel.prototype=new r3Ttag;
  94. // r3postef.h_H